package com.gnerv.rabbitmq.manage.controller;

import com.gnerv.rabbitmq.manage.business.AccountBusiness;
import com.gnerv.rabbitmq.manage.model.Result;
import com.gnerv.rabbitmq.manage.model.dto.AccountCreateDTO;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "account")
public class AccountController {

    @Resource
    private AccountBusiness accountBusiness;

    public Result<Void> create(@RequestBody AccountCreateDTO accountCreateDTO){
        accountBusiness.create(accountCreateDTO);
        return Result.ok();
    }


}
